package com.xmb.wechat.bean;

import java.io.Serializable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import io.objectbox.relation.ToMany;

/**
 * @Author lijiangop
 * @CreateTime 2020/5/12 11:02
 */

@Entity
public class PYQBean implements Serializable {

    @Id
    private long                  id;
    private long                  ownerId    = -2;
    private String                cover;
    private boolean               isShowUnreadMsg;
    private String                unReadNum;
    private long                  unReaderId = -2;
    private ToMany<PYQTrendsBean> trends;

    public PYQBean() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(long ownerId) {
        this.ownerId = ownerId;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public boolean isShowUnreadMsg() {
        return isShowUnreadMsg;
    }

    public void setShowUnreadMsg(boolean showUnreadMsg) {
        isShowUnreadMsg = showUnreadMsg;
    }

    public String getUnReadNum() {
        return unReadNum;
    }

    public void setUnReadNum(String unReadNum) {
        this.unReadNum = unReadNum;
    }

    public long getUnReaderId() {
        return unReaderId;
    }

    public void setUnReaderId(long unReaderId) {
        this.unReaderId = unReaderId;
    }

    public ToMany<PYQTrendsBean> getTrends() {
        return trends;
    }

    public void setTrends(ToMany<PYQTrendsBean> trends) {
        this.trends = trends;
    }

    @Override
    public String toString() {
        return "PYQBean{" +
                "id=" + id +
                ", ownerId=" + ownerId +
                ", cover='" + cover + '\'' +
                ", isShowUnreadMsg=" + isShowUnreadMsg +
                ", unReadNum='" + unReadNum + '\'' +
                ", unReaderId=" + unReaderId +
                ", trends=" + trends +
                '}';
    }
}
